﻿using System;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
namespace HtmlParser
{
	public class DTDParser
	{
		

		public static string GetDtdContent(string name)
		{
			var path = Environment.CurrentDirectory;
			var filename = Path.Combine(path, "dtd", name + ".dtd");
			var fi = new FileInfo(filename);
			if (!fi.Exists) return String.Empty;
			string s;
			using (var S = fi.OpenRead())
			{
				using (var r = new StreamReader(S, Encoding.UTF8))
				{
					s = r.ReadToEnd();
				}
			}
			return s;
		}
	}
}
